﻿using Furion;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using ProjectManage.EntityFramework.Core.DbContexts;

namespace ProjectManage.EntityFramework.Core
{
    public class Startup : AppStartup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            
            services.AddDatabaseAccessor(options =>
            {
                options.AddDbPool<DefaultDbContext>(providerName: default, optionBuilder: (services, opt) => 
                {
                    opt.UseSqlServer();   
                });
            }, "ProjectManage.Database.Migrations");
        }
    }
}